<?php
use Lib\Stack\StackStorage;

class App_Plugin_StackStorage extends Zend_Controller_Plugin_Abstract
{
    public function preDispatch(Zend_Controller_Request_Abstract $request){
        if(Zend_Registry::isRegistered('stack')) return;
        Zend_Registry::set('stack', new StackStorage());
    }
}